]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
modalDialog: The dialog layout should expand, not the buttons
authorJasper St. Pierre <jstpierre@mecheye.net>
Mon, 12 Aug 2013 18:40:46 +0000 (14:40 -0400)
committerJasper St. Pierre <jstpierre@mecheye.net>
Thu, 15 Aug 2013 00:39:07 +0000 (20:39 -0400)
https://bugzilla.gnome.org/show_bug.cgi?id=705916

js/ui/modalDialog.js

index d400b5ad7e94ec34c2eed1df75619d1f471955fb..40a696812b55df98aa8ed052bc8e57e50b53999d 100644 (file)
@@ -95,7 +95,8 @@ const ModalDialog = new Lang.Class({
 
         this.contentLayout = new St.BoxLayout({ vertical: true });
         this.dialogLayout.add(this.contentLayout,
-                              { x_fill:  true,
+                              { expand:  true,
+                                x_fill:  true,
                                 y_fill:  true,
                                 x_align: St.Align.MIDDLE,
                                 y_align: St.Align.START });
@@ -103,8 +104,7 @@ const ModalDialog = new Lang.Class({
         this.buttonLayout = new St.BoxLayout({ style_class: 'modal-dialog-button-box',
                                                vertical: false });
         this.dialogLayout.add(this.buttonLayout,
-                              { expand:  true,
-                                x_align: St.Align.MIDDLE,
+                              { x_align: St.Align.MIDDLE,
                                 y_align: St.Align.END });
 
         global.focus_manager.add_group(this.dialogLayout);